<?PHP
include("../public/common.php");
include("../config/connect.php");
$id = CheckUrlParamNoDie("id");

$count = 0;
$sql = "select count(*) as tmp from user where commend_id='".$id."'";
$result = mysql_query( $sql );
$row = mysql_fetch_assoc( $result );
$count = $row["tmp"];
echo "您共推荐了&nbsp;".$count."&nbsp;个用户";

//
$sql = "select count(*) as tmp from user where all_fx>0 and commend_id='".$id."'";
$result = mysql_query( $sql );
$row = mysql_fetch_assoc( $result );
$countHasBuy = $row["tmp"];
echo "，其中有&nbsp;".$countHasBuy."&nbsp;个用户有购物记录&nbsp;";

?>
